package cn.com.nwpu.visual_system.component;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author Hutengzhong
 * @version 1.0.0
 * @title InitConfig
 * @description TODO 设置以前全局的参数
 * @date 2024/5/20 9:12
 */
@Component
public class InitConfig {
    public static String trainName;
    public static String testName;
    public static String evnPath;  // 执行环境路径
    public static String db_data_size;    // 数据量
    public static String db_data_index; // 数据起始下标

    @Value("${init-config.train-name}")
    public void setTrainName(String trainName) {
        InitConfig.trainName = trainName;
    }
    @Value("${init-config.test-name}")
    public void setTestName(String testName) {
        InitConfig.testName = testName;
    }
    @Value("${init-config.evn-path}")
    public void setEvnPath(String evnPath) {
        InitConfig.evnPath = evnPath;
    }
    @Value("${init-config.train-data.size}")
    public void setDb_data_size(String db_data_size) {
        InitConfig.db_data_size = db_data_size;
    }
    @Value("${init-config.train-data.index}")
    public void setDb_data_index(String db_data_index) {
        InitConfig.db_data_index = db_data_index;
    }
}
